﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using AssessmentTool.PresentationLogic;
using AssessmentTool.PresentationLogic.Controllers;

namespace AssessmentTool.Controls
{
    public partial class PanelCompetenze : UserControl, IContainer
    {
        PanelCompetenzeController controller;
        
        public PanelCompetenze()
        {
            InitializeComponent();
            controller = new PanelCompetenzeController(this);
        }
        #region AGGIUNGI_RIMUOVI_COMPETENZE
        public void addChild(UserControl control)
        {

            container.Children.Add(control);
        }
        public void clearCompetenze()
        {
            container.Children.Clear();
        }
        #endregion



        public void setIContainerParent(IContainer parent)
        {
            throw new NotImplementedException();
        }

        public void addProgress()
        {
            controller.addRisposta();
        }
        public void addMaximumProgress()
        {
            controller.addTotaleCompetenze();
        }


        public void enableRisposta(bool enable)
        {
            throw new NotImplementedException();
        }
    }
}
